package org.example.config;

import org.example.controller.LoginController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//通过@Configuration注册配置类到容器中
@Configuration
public class AppConfig {

    @Bean
    public AppTmp test(LoginController.Tmp tmp){
        AppTmp tmp1=new AppTmp();
        tmp1.setTmp(tmp);
        return tmp1;
    }

    public static class AppTmp{
        private LoginController.Tmp tmp;

        public LoginController.Tmp getTmp() {
            return tmp;
        }

        public void setTmp(LoginController.Tmp tmp) {
            this.tmp = tmp;
        }
    }
}
